package com.qf.medical.controller;

import com.qf.medical.service.OperationService;
import com.qf.medical.vo.PageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @EXPLAIN:
 * @author: 苑天恒
 * @DATE: 2023/5/7 0007
 * @Email: 3483282099@qq.com
 */
@RestController
@RequestMapping("/operation")
public class OperationController {
    @Autowired
    private OperationService operationService;

    @GetMapping("/selectoperation")
    public PageBean selectOperation(Integer ssid, int page, int limit) {
        return operationService.selectOperation(ssid, page, limit);
    }
    @GetMapping("/selectoperationroom")
    public PageBean selectOperationrom(Integer ssrid, int page, int limit) {
        return operationService.selectOperationRoom(ssrid, page, limit);
    }

}
